import { createRouter, createWebHistory } from "vue-router";

const routes = [
  {
    path: "/",
    name: "Home",
    component: () => import("../views/HomeView.vue"),
  },
  {
    path: "/typemanage",
    name: "TypeManage",
    component: () => import("../views/admin/TypeManageView.vue"),
  },
    {
    path: "/goodsmanage",
    name: "GoodsManage",
    component: () => import("../views/admin/GoodsManageView.vue"),
  },
    {
    path: "/ordermanage",
    name: "OrderManage",
    component: () => import("../views/admin/OrderManageView.vue"),
  },
 ]
 const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes,
 })
 export default router
